<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<h1 align="center">목록</h1>

<table id="contetn" align="center"  border="1" width="500">
	<tr>
		<th align="center">번호</th>
		<th width="40" align="center">도</th>      
        <th width="100" align="center">시</th>
        <th width="100" align="center">상세</th>
        <th width="80" align="center">고객번호</th>                
        <th width="80" align="center">탑승날짜</th>
	</tr>

	<c:forEach items="${requestScope.lto.list}" var="li">
		<tr>
			<td>${li.no }</td>
			<td>
				<c:forEach begin="1" end="${li.relevel }" step="1">
					&nbsp;&nbsp;
				</c:forEach>
				<c:if test="${li.relevel != 0 }">
					→
				</c:if>
				<a href="getRatingComment.do?.no=${li.no }&page=${requestScope.lto.pagingTO.currentPage}">
					${li.memberPhone }
				</a>
			</td>
			<td>${li.driverPhone }</td>
			<td>${li.rideDate }</td>
			<td>${li.rating }</td>
			<td>${li.viewcount }</td>
		</tr>	
	</c:forEach>
	
</table>
<p>
<table align="center">
	<tr>
		<td>		
		<c:choose>
			<c:when test="${requestScope.lto.pagingTO.previousPageGroup }">
				<a href="/kosta_project_final_taxi/hlist.do?page=${requestScope.lto.pagingTO.startPageOfPageGroup -1 }">
				◀
				</a>
			</c:when>
			<c:otherwise>
				◀
			</c:otherwise>
		</c:choose>
		<c:forEach begin="${requestScope.lto.pagingTO.startPageOfPageGroup }"
							   end="${requestScope.lto.pagingTO.endPageOfPageGroup }"
							   step="1"
							   var ="i">
			<c:choose>
				<c:when test="${i == requestScope.lto.pagingTO.currentPage }">
					${i }
				</c:when>
				<c:otherwise>
					<a href="/kosta_project_final_taxi/hlist.do?page=${i }">${i }</a>
				</c:otherwise>
			</c:choose>			
		</c:forEach>
		<c:choose>
			<c:when test="${requestScope.lto.pagingTO.nextPageGroup }">
				<a href="/kosta_project_final_taxi/hlist.do?page=${requestScope.lto.pagingTO.endPageOfPageGroup + 1 }">
					▶
				</a>
			</c:when>
			<c:otherwise>
				▶
			</c:otherwise>
		</c:choose>
		
		<td>
	</tr>
</table>